{% extends "base.html" %}

{% block content %}
<h1><a href="/ideas/{{ idea.title }}">{{ idea.title }}</a> Commentaries</h1>
<p>
{% for comment in comments %}
	<div class="featurebox">
	<h2>{{ comment.title }}</h2>
	<h4>{{ comment.text }}</h4>
	</div>
{% endfor %}
<p>

{% if error_message %}<p class="error">{{ error_message }}</p>{% endif %}

<form action="/ideas/{{ idea.title }}/comments/" method="post" class="f-wrap-1">

<label for="title"><b>title:</b>
<input id="title" type="text" name="title" class="f-name"/>
</label>

<label for="text"><b>comment:</b>
<textarea id="text" name="text" class="f-comments" rows="6" cols="20">
type comment here!
</textarea>
<br />
</label>
<input type="submit" value="Create Comment" class="f-submit" /> <br />
</form>

{% endblock %}